//
//  PauseLayer.h
//  NinjaTurtle
//
//  Created by Nguyen Tri Chung on 2/25/15.
//
//

#ifndef __NinjaTurtle__PauseLayer__
#define __NinjaTurtle__PauseLayer__

#include <stdio.h>
#include "cocos2d.h"
#include "../model/model.h"
#include "../support/support.h"

USING_NS_CC;

class PauseLayer : public Layer {
    CC_SYNTHESIZE(MenuItemSprite*, continueButton, ContinueButton);
    CC_SYNTHESIZE(MenuItemSprite*, restartButton, RestartButton);
    CC_SYNTHESIZE(MenuItemSprite*, quitButton, QuitButton);
    
    CC_SYNTHESIZE_READONLY(Vector<MenuItemSprite*>*, parentButtons, ParentButtons);
protected:
    Layer* mainLayer;
    Menu* mainMenu;
    CSprite* dialogFace;
    LayerColor* backgroundLayer;
    
    View* parent;
public:
    PauseLayer(View* parent);
    virtual ~PauseLayer();
    
    void initialize();
    void createLayers();
    void createLayersContent();
    void functionCallback(const string& data);
    
    void show();
    void hide();
    
    void enableParentButton(bool enabled);
    void enableButton(bool enabled);
};

#endif /* defined(__NinjaTurtle__PauseLayer__) */
